package cn.com.ustudy.course.core.model.vo;

import cn.melonlib.cores.commons.model.entity.ApiEntity;
import cn.melonlib.cores.commons.model.entity.StringIdEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@ModelComment("课程章节")
public class CourseSection extends StringIdEntity implements ApiEntity {

    @ModelComment(value = "名称",required = true)
    private String name;

    @ModelComment("子章节")
    private List<CourseSection> children;
}
